using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;

namespace SinBiota.Model.Entities
{
    [LocalizedName("DrainageBasin", NameResourceType = typeof(Strings))]
    public class DrainageBasin : BaseEntity
    {
        [LocalizedName("Name", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual string Name { get; set; }

        public override string ToString()
        {
            return Name;
        }
    }
}
